# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gmime
pkgver=3.2.11
pkgrel=0
pkgdesc="Glorious MIME Utility Library"
url="https://github.com/jstedfast/gmime"
arch="all"
license="LGPL-2.1-or-later"
depends="gpgsm"
makedepends="glib-dev gpgme-dev libnsl-dev libidn2-dev vala gobject-introspection-dev"
options="!check" # https://github.com/jstedfast/gmime/issues/63
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://github.com/jstedfast/gmime/releases/download/$pkgver/gmime-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-vala
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0d61ce2c7716de3fec2b6666937f01b880b45a1fe7b6c40b5d253e8510f8a4af3b274473b0da4319018747484df35df7ac8fe0ebae019b2f956c525182cf30f8  gmime-3.2.11.tar.xz
"
